package starter.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Aimy
 * @Date 2021/6/17 11:03
 **/
@Configuration
@ConfigurationProperties(prefix = "qbd.pool")
public class QbdPoolConfig {

    /**
     * 默认线程池大小为核数*2
     */
    private Integer poolSize;

    /**
     * 存活时间
     */
    private Long timeAlive;

    /**
     * 阻塞队列长度
     */
    private Integer blockQueueLength;


    public Integer getPoolSize() {
        return poolSize;
    }

    public void setPoolSize(Integer poolSize) {
        this.poolSize = poolSize;
    }

    public Long getTimeAlive() {
        return timeAlive;
    }

    public void setTimeAlive(Long timeAlive) {
        this.timeAlive = timeAlive;
    }

    public Integer getBlockQueueLength() {
        return blockQueueLength;
    }

    public void setBlockQueueLength(Integer blockQueueLength) {
        this.blockQueueLength = blockQueueLength;
    }
}
